/**
 * Copyright (c) 2013 onionframework.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.onionframework.faces.service;

import javax.annotation.PostConstruct;

import org.onionframework.faces.dao.FoodDao;
import org.onionframework.faces.model.Food;
import org.onionframework.persistence.service.GenericServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author allan
 *
 */
@Service
public class FoodService extends GenericServiceImpl<Food> {

	@Autowired private FoodDao foodDao;
	
	@PostConstruct
	public void init(){
		super.setDao(foodDao);
		super.init();
	}
}
